<aside class="sidebar">
    <!-- 搜索框 -->
    <div class="fixed">
        <div class="widget widget_search">
            <form class="navbar-form" method="get" action="/">
                <div class="input-group">
                    <input type="text" name="keyword" class="form-control" size="35" placeholder="请输入关键字" value="{{$keyword}}" maxlength="15" autocomplete="off">

                    <span class="input-group-btn">
                        <button class="btn btn-default btn-search" type="submit">搜索</button>
                    </span> 
                </div>
            </form>
        </div>
    </div>

    <!-- 热门文章 -->
    <div class="widget widget_hot">
        <h3>热门文章</h3>
        <ul>
            @foreach($HotList as $item)
            <li>
                <a href="{{url('/info', ['artid' => $item->id])}}">
                    <span class="thumbnail">
                        <img class="thumb" src="{{URL::asset($item->thumb)}}" />
                    </span>

                    <span class="text">
                        {{$item->title}}
                    </span>
                    
                    <span class="muted">
                        <i class="glyphicon glyphicon-time"></i> {{date('Y-m-d', strtotime($item->created_at))}}
                    </span>
                    
                    <span class="muted">
                        <i class="glyphicon glyphicon-eye-open"></i> {{$item->visit ? $item->visit : 0}}
                    </span>
                </a>
            </li>
            @endforeach
        </ul>
    </div>
</aside>